package com.jfinal.aceadmin.security.model;

import java.awt.List;
import java.util.ArrayList;

import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;
import com.mysql.jdbc.StringUtils;

/**
 * 用户模型
 * @author shimin
 *
 */
public class User extends Model<User>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 6169630141967050133L;
	public static final String HASH_ALGORITHM = "SHA-1";
	public static final int HASH_INTERATIONS = 1024;
	private static final int SALT_SIZE = 8;
	public static final User dao = new User();
	
	public Page<User> paginate(int pageNumber,int pageSize,User user){
		StringBuilder from = new StringBuilder("from sec_user u left join sec_org o on u.org=o.id where 1=1");
		return null;


	}
	
	/**
	 * 设定安全的密码，生成随机的salt并经过1024次sha-1 hash
	 * 
	 */
	public void entryptPassword(User user){
		
	}



	
	

}
